package com.gao.frame.study.shop.user.module.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;

@Data
@TableName(value = "customer_login_log")
public class CustomerLoginLog {
    /**
     * 登录日志ID
     */
     @TableId(value = "login_id", type = IdType.AUTO)
    private Integer loginId;

    /**
     * 登录用户ID
     */
    @TableField(value = "customer_id")
    private Integer customerId;

    /**
     * 用户登录时间
     */
    @TableField(value = "login_time")
    private Date loginTime;

    /**
     * 登录IP
     */
    @TableField(value = "login_ip")
    private Integer loginIp;

    /**
     * 登录类型:0未成功 1成功
     */
    @TableField(value = "login_type")
    private Byte loginType;

    public static final String COL_CUSTOMER_ID = "customer_id";

    public static final String COL_LOGIN_TIME = "login_time";

    public static final String COL_LOGIN_IP = "login_ip";

    public static final String COL_LOGIN_TYPE = "login_type";
}